<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{accAccountPeriodBean.id}"/>
		<f:event type="preRenderView" listener="#{accAccountPeriodBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Acc Account Period"/>

	<ui:define name="header">
		Acc Account Period
	</ui:define>

	<ui:define name="subheader">
		View existing Acc Account Period
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccPeriodName" value="Acc Period Name:"/>
			<h:outputText id="accAccountPeriodBeanAccAccountPeriodAccPeriodName" value="#{accAccountPeriodBean.accAccountPeriod.accPeriodName}"/>
			<h:outputText/>
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccPeriodYear" value="Acc Period Year:"/>
			<h:outputText id="accAccountPeriodBeanAccAccountPeriodAccPeriodYear" value="#{accAccountPeriodBean.accAccountPeriod.accPeriodYear}"/>
			<h:outputText/>
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccPeriodBeginDate" value="Acc Period Begin Date:"/>
			<h:outputText id="accAccountPeriodBeanAccAccountPeriodAccPeriodBeginDate" value="#{accAccountPeriodBean.accAccountPeriod.accPeriodBeginDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccPeriodEndDate" value="Acc Period End Date:"/>
			<h:outputText id="accAccountPeriodBeanAccAccountPeriodAccPeriodEndDate" value="#{accAccountPeriodBean.accAccountPeriod.accPeriodEndDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccPeriodIsActive" value="Acc Period Is Active:"/>
			<h:outputText id="accAccountPeriodBeanAccAccountPeriodAccPeriodIsActive" value="#{accAccountPeriodBean.accAccountPeriod.accPeriodIsActive}"/>
			<h:outputText/>
			<h:outputLabel for="accAccountPeriodBeanAccAccountPeriodAccAccountPeriodMonths" value="Acc Account Period Months:"/>
			<h:dataTable id="accAccountPeriodBeanAccAccountPeriodAccAccountPeriodMonths" styleClass="data-table" value="#{forgeview:asList(accAccountPeriodBean.accAccountPeriod.accAccountPeriodMonths)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Acc Period Month Begin Date"/>
					</f:facet>
					<h:link outcome="/form/accAccountPeriodMonth/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccPeriodMonthBeginDate" value="#{_item.accPeriodMonthBeginDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Acc Period Month End Date"/>
					</f:facet>
					<h:link outcome="/form/accAccountPeriodMonth/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAccPeriodMonthEndDate" value="#{_item.accPeriodMonthEndDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>